#!/usr/bin/python
found = 0
count = 1
freqs = {}
while count:
	count += 1
	for i in xrange(1,11):
		if count % i == 0:
			#list_of_ints.append(i)
			freqs[count] = freqs.get(count, 0) + 1
			if freqs[count] == 10:
				found = 1
			else:
				continue
	if found:
		print count, "is the smallest number"
		break
